package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 抖音类目对象 tl_dy_category
 *
 * @author ruoyi
 * @date 2023-10-21
 */
public class TlDyCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类目id */
    private Long id;

    /** 抖音类目id */
    @Excel(name = "抖音类目id")
    private Long dyCategoryId;

    /** 抖音类目名称 */
    @Excel(name = "抖音类目名称")
    private String dyCategoryName;

    private Long parentId;

    private List<TlDyCategory> children = new ArrayList<TlDyCategory>();

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setChildren(List<TlDyCategory> children) {
        this.children = children;
    }

    public List<TlDyCategory> getChildren() {
        return children;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDyCategoryId(Long dyCategoryId)
    {
        this.dyCategoryId = dyCategoryId;
    }

    public Long getDyCategoryId()
    {
        return dyCategoryId;
    }
    public void setDyCategoryName(String dyCategoryName)
    {
        this.dyCategoryName = dyCategoryName;
    }

    public String getDyCategoryName()
    {
        return dyCategoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dyCategoryId", getDyCategoryId())
            .append("dyCategoryName", getDyCategoryName())
            .append("parentId", getParentId())
            .toString();
    }
}
